package com.pig4cloud.pig.common.swagger.annotation;

import com.pig4cloud.pig.common.swagger.config.FilterIgnorePropertiesConfig;
import com.pig4cloud.pig.common.swagger.config.SwaggerProvider;
import com.pig4cloud.pig.common.swagger.handler.SwaggerAPIHandler;
import org.springframework.context.annotation.Import;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 网关api接口文档自动注入
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import({SwaggerProvider.class, SwaggerAPIHandler.class, FilterIgnorePropertiesConfig.class})
public @interface EnableGatewaySwagger2 {

    /**
     * 需要引入的配置
     * @return
     */
    @AliasFor(annotation = Import.class)
    Class<?>[] value() default {};


}
